let name = 'zf'
let age = 9

let obj = {name, age}
console.log(obj)

let obj1 = {age: 1, getFood(){
    return '面包'
}}


let obj3 = {
    __proto__:obj1,
    getFood(){
        return '牛奶' + super.getFood()
    }
}

// Object.setPrototypeOf(obj3, obj1)
// obj3.__proto__ = obj1

console.log(obj3.getFood())

